package com.yupi.springbootinit.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yupi.springbootinit.model.entity.ChatMessages;

import javax.servlet.http.HttpServletRequest;

/**
* @author 尔特岛
* @description 针对表【chatmessage(聊天消息表)】的数据库操作Service
* @createDate 2025-03-27 16:22:41
*/
public interface ChatMessageService extends IService<ChatMessages> {

    /**
     * AI对话核心方法
     * @param request
     * @param roomId
     * @param userPrompt
     * @return
     */
    String doChatOfIM(HttpServletRequest request, String roomId, String userPrompt);

    String doChatOfDB(HttpServletRequest request, String roomId, String userPrompt);
    String doChat(HttpServletRequest request, String roomId, String userPrompt);
}
